package com.studerb.tasks;

import java.util.Comparator;

import com.studerb.tasks.interfaces.ITask;

public class TaskPriorityComparator implements Comparator<ITask> {
    @Override public int compare(ITask o1, ITask o2) {
        if(o1.equals(o2))
            return 0;
        return o1.getPriority().compareTo(o2.getPriority());
    }
}
